<?php

use yii\db\Schema;
use yii\db\Migration;

class m160308_114317_add_mobile_video_adspace_platform_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%mobile_video_adspace}}', 'platform', "int(1) NOT NULL DEFAULT '1' COMMENT '1 android, 2 ios' after min_duration");
    }

    public function down()
    {
        return $this->dropColumn('{{%mobile_video_adspace}}', 'platform');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
